import {Router} from '@angular/router'; constructor(private router: Router) {} navigateToLogin() { this.router.navigateByUrl('/login'); }
ng g m [ModuleName] --routing